package com.zecan.blog.service;

import com.zecan.blog.entity.Article;
import com.zecan.blog.vo.article.ArticleMsgVo;
import com.zecan.blog.vo.elasticsearch.ElasticArticleMsgVo;

import java.util.List;

/**
 * 操作es的接口
 * @ClassName ElasticService
 * @Description
 * @date 2022/11/18 23:34
 * @Version 1.0
 */

public interface ElasticService {

    /**
     * 根据关键字在es中查找对应的文件信息
     * @param keyWord 关键字
     * @return
     */
    ElasticArticleMsgVo findArticleByTitleAndDescription(String keyWord, Integer offset, Integer limit);

    /**
     * 根据关键字在es中查找有多少个符合的数量
     * @param keyWord
     * @return
     */
    Integer findArticleCountToEs(String keyWord);

}
